<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Router Class Reference</title>
    <link rel="stylesheet" type="text/css" href="../css/jazzy.css" />
    <link rel="stylesheet" type="text/css" href="../css/highlight.css" />
    <meta charset="utf-8">
    <script src="../js/jquery.min.js" defer></script>
    <script src="../js/jazzy.js" defer></script>
    
    <script src="../js/lunr.min.js" defer></script>
    <script src="../js/typeahead.jquery.js" defer></script>
    <script src="../js/jazzy.search.js" defer></script>
  </head>
  <body>

    <a name="//apple_ref/swift/Class/Router" class="dashAnchor"></a>

    <a title="Router Class Reference"></a>

    <header class="header">
      <p class="header-col header-col--primary">
        <a class="header-link" href="../index.html">
          Kitura Docs
        </a>
         (99% documented)
      </p>
    
      <p class="header-col--secondary">
        <form role="search" action="../search.json">
          <input type="text" placeholder="Search documentation" data-typeahead>
        </form>
      </p>
    
        <p class="header-col header-col--secondary">
          <a class="header-link" href="https://github.com/Kitura/Kitura/">
            <img class="header-icon" src="../img/gh.png"/>
            View on GitHub
          </a>
        </p>
    
    </header>

    <p class="breadcrumbs">
      <a class="breadcrumb" href="../index.html">Kitura Reference</a>
      <img class="carat" src="../img/carat.png" />
      Router Class Reference
    </p>

    <div class="content-wrapper">
      <nav class="navigation">
        <ul class="nav-groups">
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Classes.html">Classes</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/BodyParser.html">BodyParser</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/BodyParserMultiValue.html">BodyParserMultiValue</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/ContentType.html">ContentType</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/Kitura.html">Kitura</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/Router.html">Router</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/RouterMiddlewareGenerator.html">RouterMiddlewareGenerator</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/RouterRequest.html">RouterRequest</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/RouterResponse.html">RouterResponse</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/StaticFileServer.html">StaticFileServer</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/StaticFileServer/CacheOptions.html">– CacheOptions</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Classes/StaticFileServer/Options.html">– Options</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Enums.html">Enumerations</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/JSONPError.html">JSONPError</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/LinkParameter.html">LinkParameter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/ParsedBody.html">ParsedBody</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Enums/RouterMethod.html">RouterMethod</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Extensions.html">Extensions</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Extensions/DecodingError.html">DecodingError</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Protocols.html">Protocols</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/ResponseHeadersSetter.html">ResponseHeadersSetter</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/RouterMiddleware.html">RouterMiddleware</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Structs.html">Structures</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/AdditionalCookieAttribute.html">AdditionalCookieAttribute</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/CodableHelpers.html">CodableHelpers</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/HTTPVersion.html">HTTPVersion</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/Headers.html">Headers</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/MediaType.html">MediaType</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/MediaType/TopLevelType.html">– TopLevelType</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/Part.html">Part</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/Part/HeaderType.html">– HeaderType</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/SSLConfig.html">SSLConfig</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Structs/SwaggerDocument.html">SwaggerDocument</a>
              </li>
            </ul>
          </li>
          <li class="nav-group-name">
            <a class="nav-group-name-link" href="../Typealiases.html">Type Aliases</a>
            <ul class="nav-group-tasks">
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura14HTTPStatusCodea">HTTPStatusCode</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura16LifecycleHandlera">LifecycleHandler</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura13ServerOptionsa">ServerOptions</a>
              </li>
              <li class="nav-group-task">
                <a class="nav-group-task-link" href="../Typealiases.html#/s:6Kitura17WrittenDataFiltera">WrittenDataFilter</a>
              </li>
            </ul>
          </li>
        </ul>
      </nav>
      <article class="main-content">

        <section class="section">
          <div class="section-content top-matter">
            <h1>Router</h1>
              <div class="declaration">
                <div class="language">
                  
                  <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">class</span> <span class="kt">Router</span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">Router</span> <span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span></code></pre>
<pre class="highlight swift"><code><span class="kd">extension</span> <span class="kt">Router</span> <span class="p">:</span> <span class="kt">ServerDelegate</span></code></pre>

                </div>
              </div>
            <p><code>Router</code> provides the external interface for routing requests to
the appropriate code to handle them. This includes:</p>

<ul>
<li>Routing requests to closures of type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code></li>
<li>Routing requests to the handle function of classes that implement the
<code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> protocol.</li>
<li>Routing requests to a <code>TemplateEngine</code> to generate the appropriate output.</li>
<li>Serving the landing page when someone makes an HTTP request with a path of slash (/).</li>
</ul>

          </div>
        </section>

        <section class="section">
          <div class="section-content">
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Initializer"></a>
                <a name="//apple_ref/swift/Section/Initializer" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Initializer"></a>
                  <h3 class="section-name"><p>Initializer</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC15mergeParameters17enableWelcomePage11apiDocumentACSb_SbAA07SwaggerI0Vtcfc"></a>
                    <a name="//apple_ref/swift/Method/init(mergeParameters:enableWelcomePage:apiDocument:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC15mergeParameters17enableWelcomePage11apiDocumentACSb_SbAA07SwaggerI0Vtcfc">init(mergeParameters:<wbr>enableWelcomePage:<wbr>apiDocument:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Initialize a <code>Router</code> instance.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code> <span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
</code></pre>
<h4 id='using-code-mergeparameters-code' class='heading'>Using <code>mergeParameters</code>:</h4>

<p>When initialising a <code>Router</code>, <code>mergeParameters</code> allows you to control whether
the router will be able to access parameters matched in its parent router. For instance, in the example below
if <code>mergeParameters</code> is set to <code>true</code>, <code>GET /Hello/Alex</code> will return &ldquo;Hello Alex&rdquo;, but if set to <code>false</code>
the <code>greeting</code> parameter will not be accessible and it will return just &ldquo; Alex&rdquo;.</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="k">let</span> <span class="nv">userRouter</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">(</span><span class="nv">mergeParameters</span><span class="p">:</span> <span class="kc">true</span><span class="p">)</span>

<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/:greeting"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">_</span> <span class="k">in</span>
  <span class="k">let</span> <span class="nv">greeting</span> <span class="o">=</span> <span class="n">request</span><span class="o">.</span><span class="n">parameters</span><span class="p">[</span><span class="s">"greeting"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span>
  <span class="k">try</span> <span class="n">response</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="s">"</span><span class="se">\(</span><span class="n">greeting</span><span class="se">)</span><span class="s">"</span><span class="p">)</span><span class="o">.</span><span class="nf">end</span><span class="p">()</span>
<span class="p">}</span>

<span class="n">userRouter</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/:user"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">_</span> <span class="k">in</span>
  <span class="k">let</span> <span class="nv">user</span> <span class="o">=</span> <span class="n">request</span><span class="o">.</span><span class="n">parameters</span><span class="p">[</span><span class="s">"user"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span>
  <span class="k">let</span> <span class="nv">greeting</span> <span class="o">=</span> <span class="n">request</span><span class="o">.</span><span class="n">parameters</span><span class="p">[</span><span class="s">"greeting"</span><span class="p">]</span> <span class="p">??</span> <span class="s">""</span>
  <span class="k">try</span> <span class="n">response</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="s">"</span><span class="se">\(</span><span class="n">greeting</span><span class="se">)</span><span class="s"> </span><span class="se">\(</span><span class="n">user</span><span class="se">)</span><span class="s">"</span><span class="p">)</span><span class="o">.</span><span class="nf">end</span><span class="p">()</span>
<span class="p">}</span>

<span class="n">router</span><span class="o">.</span><span class="nf">all</span><span class="p">(</span><span class="s">"/:greeting"</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="n">userRouter</span><span class="p">)</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="nf">init</span><span class="p">(</span><span class="nv">mergeParameters</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="nv">enableWelcomePage</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">apiDocument</span><span class="p">:</span> <span class="kt"><a href="../Structs/SwaggerDocument.html">SwaggerDocument</a></span> <span class="o">=</span> <span class="kt"><a href="../Structs/SwaggerDocument.html">SwaggerDocument</a></span><span class="p">())</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>mergeParameters</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional parameter to specify if the router should be able to access parameters
                            from its parent router. Defaults to <code>false</code> if not specified.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>enableWelcomePage</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional parameter to start and use the
                           FileResourceServer to serve the default
                           &ldquo;Welcome to Kitura&rdquo; page and related
                           assets.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>apiDocument</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Optional parameter that allows customization of the OpenAPI document 
                     describing this Router.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Swagger"></a>
                <a name="//apple_ref/swift/Section/Swagger" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Swagger"></a>
                  <h3 class="section-name"><p>Swagger</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC11swaggerJSONSSSgvp"></a>
                    <a name="//apple_ref/swift/Property/swaggerJSON" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC11swaggerJSONSSSgvp">swaggerJSON</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Returns the current in-memory representation of Codable routes as a
Swagger document in JSON format, or nil if the document cannot be
generated.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">swaggerJSON</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="p">{</span> <span class="k">get</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Custom%20encoder%2Fdecoder"></a>
                <a name="//apple_ref/swift/Section/Custom encoder/decoder" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Custom%20encoder%2Fdecoder"></a>
                  <h3 class="section-name"><p>Custom encoder/decoder</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8encodersSDyAA9MediaTypeV0A9Contracts11BodyEncoder_pycGvp"></a>
                    <a name="//apple_ref/swift/Property/encoders" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8encodersSDyAA9MediaTypeV0A9Contracts11BodyEncoder_pycGvp">encoders</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A dictionary of <code><a href="../Structs/MediaType.html">MediaType</a></code> to <code>BodyEncoder</code> generators.
By default this includes an entry mapping the &ldquo;application/json&rdquo; media type to a JSONEncoder generator.
When a Codable object is sent as a response, an encoder will be generated based on the &ldquo;Accepts&rdquo; header
or using the <code><a href="../Classes/Router.html#/s:6Kitura6RouterC24defaultResponseMediaTypeAA0eF0Vvp">defaultResponseMediaType</a></code> if no matching encoder is found.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>The example below replaces the default JSON encoder with a new encoder that has a different date encoding strategy.</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="k">let</span> <span class="nv">newJSONEncoder</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">BodyEncoder</span> <span class="o">=</span> <span class="p">{</span>
    <span class="k">let</span> <span class="nv">encoder</span> <span class="o">=</span> <span class="kt">JSONEncoder</span><span class="p">()</span>
    <span class="n">encoder</span><span class="o">.</span><span class="n">dateEncodingStrategy</span> <span class="o">=</span> <span class="o">.</span><span class="n">secondsSince1970</span>
    <span class="k">return</span> <span class="n">encoder</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="n">encoders</span><span class="p">[</span><span class="o">.</span><span class="n">json</span><span class="p">]</span> <span class="o">=</span> <span class="n">newJSONEncoder</span>
</code></pre>
<h3 id='considerations-for-use-with-openapi-generation' class='heading'>Considerations for use with OpenAPI generation</h3>

<p>In order for your OpenAPI (swagger) document to correctly represent an alternate <code>Date</code> encoding that you have chosen, you <em>must</em> configure your encoders before registering routes.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">encoders</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Structs/MediaType.html">MediaType</a></span> <span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">BodyEncoder</span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC24defaultResponseMediaTypeAA0eF0Vvp"></a>
                    <a name="//apple_ref/swift/Property/defaultResponseMediaType" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC24defaultResponseMediaTypeAA0eF0Vvp">defaultResponseMediaType</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>if the request&rsquo;s Accept header does not match an encoder,
this media type will be used by the <code><a href="../Classes/RouterResponse.html">RouterResponse</a></code> to select a <code>BodyEncoder</code>.
By default, this is set to &ldquo;application/json&rdquo;.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>The example below sets the <code>defaultResponseMediaType</code> as &ldquo;application/x-yaml&rdquo;.</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="n">router</span><span class="o">.</span><span class="n">defaultResponseMediaType</span> <span class="o">=</span> <span class="kt">MediaType</span><span class="p">(</span><span class="nv">type</span><span class="p">:</span> <span class="o">.</span><span class="n">application</span><span class="p">,</span> <span class="nv">subtype</span><span class="p">:</span> <span class="s">"x-yaml"</span><span class="p">)</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">defaultResponseMediaType</span><span class="p">:</span> <span class="kt"><a href="../Structs/MediaType.html">MediaType</a></span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8decodersSDyAA9MediaTypeV0A9Contracts11BodyDecoder_pycGvp"></a>
                    <a name="//apple_ref/swift/Property/decoders" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8decodersSDyAA9MediaTypeV0A9Contracts11BodyDecoder_pycGvp">decoders</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>A dictionary of <code><a href="../Structs/MediaType.html">MediaType</a></code> to <code>BodyDecoder</code> generators.
By default this includes an entry mapping the &ldquo;application/json&rdquo; media type to a JSONDecoder generator and an entry mapping &ldquo;application/x-www-form-urlencoded&rdquo; media type to <code>QueryDecoder</code>
When a Codable object is read from the body of a request, a decoder will be generated based on the &ldquo;Content-Type&rdquo; header.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>The example below replaces the default JSON decoder with a new decoder that has a different date encoding strategy.</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="k">let</span> <span class="nv">newJSONDecoder</span><span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">BodyDecoder</span> <span class="o">=</span> <span class="p">{</span>
    <span class="k">let</span> <span class="nv">decoder</span> <span class="o">=</span> <span class="kt">JSONDecoder</span><span class="p">()</span>
    <span class="n">decoder</span><span class="o">.</span><span class="n">dateDecodingStrategy</span> <span class="o">=</span> <span class="o">.</span><span class="n">secondsSince1970</span>
    <span class="k">return</span> <span class="n">decoder</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="n">decoders</span><span class="p">[</span><span class="o">.</span><span class="n">json</span><span class="p">]</span> <span class="o">=</span> <span class="n">newJSONDecoder</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">decoders</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Structs/MediaType.html">MediaType</a></span> <span class="p">:</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">BodyDecoder</span><span class="p">]</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Template%20Engine"></a>
                <a name="//apple_ref/swift/Section/Template Engine" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Template%20Engine"></a>
                  <h3 class="section-name"><p>Template Engine</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9viewsPathSSvp"></a>
                    <a name="//apple_ref/swift/Property/viewsPath" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9viewsPathSSvp">viewsPath</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>The root directory where template files should be placed in order to be automatically handed
over to an appropriate templating engine for content generation. The directory should sit at the
same level as the project&rsquo;s &ldquo;Sources&rdquo; directory. Defaults to &ldquo;./Views/&rdquo;.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>The example below changes the directory where template files should be placed to be &ldquo;./myViews/&rdquo;</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="n">router</span><span class="o">.</span><span class="n">viewsPath</span> <span class="o">=</span> <span class="s">"./myViews/"</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="k">var</span> <span class="nv">viewsPath</span><span class="p">:</span> <span class="kt">String</span> <span class="p">{</span> <span class="k">get</span> <span class="k">set</span> <span class="p">}</span></code></pre>

                        </div>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3add14templateEngine17forFileExtensions010useDefaultG9Extensiony0a8TemplateE00lE0_p_SaySSGSbtF"></a>
                    <a name="//apple_ref/swift/Method/add(templateEngine:forFileExtensions:useDefaultFileExtension:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3add14templateEngine17forFileExtensions010useDefaultG9Extensiony0a8TemplateE00lE0_p_SaySSGSbtF">add(templateEngine:<wbr>forFileExtensions:<wbr>useDefaultFileExtension:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register a template engine to a given router instance.
A template engine allows rendering of documents using static templates.</p>

<p>By default the templating engine will handle files in the <code>./Views</code> directory
that match the file extension it supports. You can change this default location using the <code><a href="../Classes/Router.html#/s:6Kitura6RouterC9viewsPathSSvp">viewsPath</a></code> property.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="n">router</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="nv">templateEngine</span><span class="p">:</span> <span class="kt">MyTemplateEngine</span><span class="p">())</span>
<span class="n">router</span><span class="o">.</span><span class="nf">add</span><span class="p">(</span><span class="nv">templateEngine</span><span class="p">:</span> <span class="kt">MyOtherTemplateEngine</span><span class="p">(),</span> <span class="nv">forFileExtensions</span><span class="p">:</span> <span class="p">[</span><span class="s">"html"</span><span class="p">],</span> <span class="nv">useDefaultFileExtension</span><span class="p">:</span> <span class="kc">false</span><span class="p">)</span>
</code></pre>

<p>If multiple different template engines are registered for the same extension, the template engine
that is registered last will be the one that attempts to render all template files with the chosen extension.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">add</span><span class="p">(</span><span class="nv">templateEngine</span><span class="p">:</span> <span class="kt">TemplateEngine</span><span class="p">,</span> <span class="n">forFileExtensions</span> <span class="nv">fileExtensions</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">]</span> <span class="o">=</span> <span class="p">[],</span>
                <span class="nv">useDefaultFileExtension</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>templateEngine</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The templating engine to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>forFileExtensions</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The extensions of the files to apply the template engine on.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>useDefaultFileExtension</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The flag to specify if the default file extension of the
template engine should be used. Defaults to <code>true</code> if not specified.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC10setDefault14templateEnginey0a8TemplateF00gF0_pSg_tF"></a>
                    <a name="//apple_ref/swift/Method/setDefault(templateEngine:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC10setDefault14templateEnginey0a8TemplateF00gF0_pSg_tF">setDefault(templateEngine:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets the default templating engine to be used when the extension of a file in the
<code><a href="../Classes/Router.html#/s:6Kitura6RouterC9viewsPathSSvp">viewsPath</a></code> doesn&rsquo;t match the extension of one of the registered templating engines.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="n">router</span><span class="o">.</span><span class="nf">setDefault</span><span class="p">(</span><span class="nv">templateEngine</span><span class="p">:</span> <span class="kt">MyTemplateEngine</span><span class="p">())</span>
</code></pre>

<p>If the template engine doesn&rsquo;t provide a default extension you can provide one using
<code><a href="../Classes/Router.html#/s:6Kitura6RouterC3add14templateEngine17forFileExtensions010useDefaultG9Extensiony0a8TemplateE00lE0_p_SaySSGSbtF">add(templateEngine:forFileExtensions:useDefaultFileExtension:)</a></code>. If a router instance doesn&rsquo;t
have a template engine registered that can render the given template file a
&ldquo;No template engine defined for extension&rdquo; <code>TemplatingError</code> is thrown.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">setDefault</span><span class="p">(</span><span class="nv">templateEngine</span><span class="p">:</span> <span class="kt">TemplateEngine</span><span class="p">?)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>templateEngine</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The templating engine to set as default.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Sub%20router"></a>
                <a name="//apple_ref/swift/Section/Sub router" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Sub%20router"></a>
                  <h3 class="section-name"><p>Sub router</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5route_15mergeParameters17allowPartialMatchACSS_S2btF"></a>
                    <a name="//apple_ref/swift/Method/route(_:mergeParameters:allowPartialMatch:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5route_15mergeParameters17allowPartialMatchACSS_S2btF">route(_:<wbr>mergeParameters:<wbr>allowPartialMatch:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Set up a &ldquo;sub router&rdquo; to handle requests. Chaining a route handler onto another router can make it easier to
build a server that serves a large set of paths. Each sub router handles all of the path mappings below its
parent&rsquo;s route path.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>The example below shows how the route `/parent/child&rsquo; can be defined using a sub router.</p>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="k">let</span> <span class="nv">parent</span> <span class="o">=</span> <span class="n">router</span><span class="o">.</span><span class="nf">route</span><span class="p">(</span><span class="s">"/parent"</span><span class="p">)</span>
<span class="n">parent</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/child"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">next</span> <span class="k">in</span>
    <span class="c1">// If allowPartialMatch was set to false, this would not be called.</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">route</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">mergeParameters</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The path to bind the sub router to.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>mergeParameters</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Specify if this router should have access to path parameters
matched in its parent router. Defaults to <code>false</code> if not specified.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Specify if the sub router allows a match when additional paths are added. In the example above, the <code>GET</code> request to <code>/parent/child</code> would only succeed if <code>allowPartialMatch</code> is set to <code>true</code>. Defaults to <code>true</code> if not specified.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The sub router which has been created.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Parameter%20handling"></a>
                <a name="//apple_ref/swift/Section/Parameter handling" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Parameter%20handling"></a>
                  <h3 class="section-name"><p>Parameter handling</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9parameter_7handlerACSS_yAA0B7RequestC_AA0B8ResponseCSSyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/parameter(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9parameter_7handlerACSS_yAA0B7RequestC_AA0B8ResponseCSSyyctKcdtF">parameter(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Set up handlers for a named request parameter. This can make it easier to handle
multiple routes requiring the same parameter which needs to be handled in a certain way.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="n">router</span><span class="o">.</span><span class="nf">parameter</span><span class="p">(</span><span class="s">"id"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">param</span><span class="p">,</span> <span class="n">next</span> <span class="k">in</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">_</span> <span class="o">=</span> <span class="kt">Int</span><span class="p">(</span><span class="n">param</span><span class="p">)</span> <span class="p">{</span>
        <span class="c1">// Id is an integer, continue</span>
        <span class="nf">next</span><span class="p">()</span>
    <span class="p">}</span>
    <span class="k">else</span> <span class="p">{</span>
        <span class="c1">// Id is not an integer, error</span>
        <span class="k">try</span> <span class="n">response</span><span class="o">.</span><span class="nf">status</span><span class="p">(</span><span class="o">.</span><span class="n">badRequest</span><span class="p">)</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="s">"ID is not an integer"</span><span class="p">)</span><span class="o">.</span><span class="nf">end</span><span class="p">()</span>
    <span class="p">}</span>
<span class="p">}</span>

<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/item/:id"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">_</span> <span class="k">in</span>
    <span class="c1">// This will only be reached if the id parameter is an integer</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user/:id"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">_</span> <span class="k">in</span>
    <span class="c1">// This will only be reached if the id parameter is an integer</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">parameter</span><span class="p">(</span><span class="n">_</span> <span class="nv">name</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>name</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The single parameter name to be handled.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a></code> instances that will be
                invoked when request parses a parameter with the specified name.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The current router instance.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9parameter_7handlerACSaySSG_yAA0B7RequestC_AA0B8ResponseCSSyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/parameter(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9parameter_7handlerACSaySSG_yAA0B7RequestC_AA0B8ResponseCSSyyctKcdtF">parameter(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Set up handlers for a number of named request parameters. This can make it easier to handle
multiple routes requiring similar parameters which need to be handled in a certain way.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="n">router</span><span class="o">.</span><span class="nf">parameter</span><span class="p">([</span><span class="s">"id"</span><span class="p">,</span> <span class="s">"num"</span><span class="p">])</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">param</span><span class="p">,</span> <span class="n">next</span> <span class="k">in</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">_</span> <span class="o">=</span> <span class="kt">Int</span><span class="p">(</span><span class="n">param</span><span class="p">)</span> <span class="p">{</span>
        <span class="c1">// Parameter is an integer, continue</span>
        <span class="nf">next</span><span class="p">()</span>
    <span class="p">}</span>
    <span class="k">else</span> <span class="p">{</span>
        <span class="c1">// Parameter is not an integer, error</span>
        <span class="k">try</span> <span class="n">response</span><span class="o">.</span><span class="nf">status</span><span class="p">(</span><span class="o">.</span><span class="n">badRequest</span><span class="p">)</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="s">"</span><span class="se">\(</span><span class="n">param</span><span class="se">)</span><span class="s"> is not an integer"</span><span class="p">)</span><span class="o">.</span><span class="nf">end</span><span class="p">()</span>
    <span class="p">}</span>
<span class="p">}</span>

<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/item/:id/:num"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">_</span> <span class="k">in</span>
    <span class="c1">// This will only be reached if the id and num parameters are integers.</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">parameter</span><span class="p">(</span><span class="n">_</span> <span class="nv">names</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">],</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>names</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of parameter names to be handled.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a></code> instances that will be
                invoked when request parses a parameter with the specified name.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The current router instance.</p>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9parameter_8handlersACSaySSG_SayyAA0B7RequestC_AA0B8ResponseCSSyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/parameter(_:handlers:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9parameter_8handlersACSaySSG_SayyAA0B7RequestC_AA0B8ResponseCSSyyctKcGtF">parameter(_:<wbr>handlers:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Set up handlers for a number of named request parameters. This can make it easier to handle
multiple routes requiring similar parameters which need to be handled in a certain way.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="k">let</span> <span class="nv">router</span> <span class="o">=</span> <span class="kt">Router</span><span class="p">()</span>
<span class="kd">func</span> <span class="nf">handleInt</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="kt">RouterRequest</span><span class="p">,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">RouterResponse</span><span class="p">,</span> <span class="nv">param</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">next</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Void</span> <span class="p">{</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">_</span> <span class="o">=</span> <span class="kt">Int</span><span class="p">(</span><span class="n">param</span><span class="p">)</span> <span class="p">{</span>
        <span class="c1">// Parameter is an integer, continue</span>
    <span class="p">}</span>
    <span class="k">else</span> <span class="p">{</span>
        <span class="c1">// Parameter is not an integer, error</span>
        <span class="k">try</span> <span class="n">response</span><span class="o">.</span><span class="nf">status</span><span class="p">(</span><span class="o">.</span><span class="n">badRequest</span><span class="p">)</span><span class="o">.</span><span class="nf">send</span><span class="p">(</span><span class="s">"</span><span class="se">\(</span><span class="n">param</span><span class="se">)</span><span class="s"> is not an integer"</span><span class="p">)</span><span class="o">.</span><span class="nf">end</span><span class="p">()</span>
    <span class="p">}</span>
    <span class="nf">next</span><span class="p">()</span>
<span class="p">}</span>

<span class="kd">func</span> <span class="nf">handleItem</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="kt">RouterRequest</span><span class="p">,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">RouterResponse</span><span class="p">,</span> <span class="nv">param</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">next</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">throws</span> <span class="o">-&gt;</span> <span class="kt">Void</span> <span class="p">{</span>
    <span class="k">let</span> <span class="nv">itemId</span> <span class="o">=</span> <span class="kt">Int</span><span class="p">(</span><span class="n">param</span><span class="p">)</span> <span class="c1">//This will only be reached if id is an integer</span>
    <span class="o">...</span>
<span class="p">}</span>

<span class="n">router</span><span class="o">.</span><span class="nf">parameter</span><span class="p">([</span><span class="s">"id"</span><span class="p">],</span> <span class="nv">handlers</span><span class="p">:</span> <span class="p">[</span><span class="n">handleInt</span><span class="p">,</span> <span class="n">handleItem</span><span class="p">])</span>

<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/item/:id/"</span><span class="p">)</span> <span class="p">{</span> <span class="n">request</span><span class="p">,</span> <span class="n">response</span><span class="p">,</span> <span class="n">_</span> <span class="k">in</span>
    <span class="o">...</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">parameter</span><span class="p">(</span><span class="n">_</span> <span class="nv">names</span><span class="p">:</span> <span class="p">[</span><span class="kt">String</span><span class="p">],</span> <span class="nv">handlers</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>names</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of parameter names to be handled.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handlers</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura22RouterParameterHandlera">RouterParameterHandler</a></code> instances that will be
                invoked when request parses a parameter with the specified name.
                The handlers are executed in the order they are supplied.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                      <div>
                        <h4>Return Value</h4>
                        <p>The current router instance.</p>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Codable%20Routing%20with%20TypeSafeMiddleware"></a>
                <a name="//apple_ref/swift/Section/Codable Routing with TypeSafeMiddleware" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Codable%20Routing%20with%20TypeSafeMiddleware"></a>
                  <h3 class="section-name"><p>Codable Routing with TypeSafeMiddleware</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>
and a handler which responds with a single Codable object or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an optional <code>User</code>, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
    <span class="k">guard</span> <span class="k">let</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
    <span class="p">}</span>
    <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span>
                       <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and returns a single Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_ySayq_GSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_ySayq_GSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>
and a handler which responds with an array of Codable objects or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an optional <code>User</code> array, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">guard</span> <span class="k">let</span> <span class="nv">user</span><span class="p">:</span> <span class="p">[</span><span class="kt">User</span><span class="p">]</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="nf">respondWith</span><span class="p">([</span><span class="n">user</span><span class="p">],</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span>
                       <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableArrayResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and returns an array of Codable objects or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG10IdentifierR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG10IdentifierR_SeR0_SER0_r1_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, an <code>Identifier</code>
and a handler which responds with a single Codable object or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">guard</span> <span class="k">let</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">id</span><span class="p">]</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span>
                       <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Id</span><span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and an Identifier, and returns a single of Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_ySayq__q0_tGSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAH10IdentifierR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_ySayq__q0_tGSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAH10IdentifierR_SeR0_SER0_r1_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>
and a handler which responds with an array of (<code>Identifier</code>, Codable) tuples or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [(Int, User)] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">User</span><span class="p">)]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">guard</span> <span class="k">let</span> <span class="nv">users</span><span class="p">:</span> <span class="p">[(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">User</span><span class="p">)]</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">users</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="n">users</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span>
                       <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">User</span><span class="p">)]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Id</span><span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">IdentifierCodableArrayResultClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance, and returns an array of (Identifier, Codable) tuples or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG11QueryParamsR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG11QueryParamsR_SeR0_SER0_r1_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, the parsed query parameters,
and a handler which responds with a single Codable object or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">Query</span><span class="p">:</span> <span class="kt">QueryParams</span> <span class="p">{</span>
   <span class="k">let</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">guard</span> <span class="k">let</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">query</span><span class="o">.</span><span class="n">id</span><span class="p">]</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span>
<span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Q</span><span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Q</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and a QueryParams instance, and returns a single of Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_q_ySayq0_GSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAH11QueryParamsR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_q_ySayq0_GSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAH11QueryParamsR_SeR0_SER0_r1_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, the parsed query parameters,
and a handler which responds with an array of Codable objects or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: [User]] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">Query</span><span class="p">:</span> <span class="kt">QueryParams</span> <span class="p">{</span>
   <span class="k">let</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">guard</span> <span class="k">let</span> <span class="nv">user</span><span class="p">:</span> <span class="p">[</span><span class="kt">User</span><span class="p">]</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">query</span><span class="o">.</span><span class="n">id</span><span class="p">]</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span>
                       <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Q</span><span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Q</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableArrayResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and a QueryParams instance, and returns an array of Codable objects or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_q_SgySayq0_GSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAI11QueryParamsR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_q_SgySayq0_GSg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAI11QueryParamsR_SeR0_SER0_r1_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a GET request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, the parsed query parameters,
and a handler which responds with an array of Codable objects or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MyHTTPAuth</code> is a struct that conforms to the <code>TypeSafeHTTPBasic</code> protocol from <code>Kitura-CredentialsHTTP</code> to provide basic HTTP authentication.</p>
<pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">Query</span><span class="p">:</span> <span class="kt">QueryParams</span> <span class="p">{</span>
    <span class="k">let</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">auth</span><span class="p">:</span> <span class="kt">MyHTTPAuth</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">?,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">query</span> <span class="o">=</span> <span class="n">query</span> <span class="p">{</span>
        <span class="k">let</span> <span class="nv">matchedUsers</span> <span class="o">=</span> <span class="n">userArray</span><span class="o">.</span><span class="n">filter</span> <span class="p">{</span> <span class="nv">$0</span><span class="o">.</span><span class="n">id</span> <span class="o">&lt;=</span>  <span class="n">query</span><span class="o">.</span><span class="n">id</span> <span class="p">}</span>
        <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="n">matchedUsers</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
        <span class="nf">respondWith</span><span class="p">(</span><span class="n">userArray</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span>
<span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Q</span><span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Q</span><span class="p">?,</span> <span class="kd">@escaping</span> <span class="kt">CodableArrayResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
    <span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and a QueryParams instance, and returns an array of Codable objects or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yx_y0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzlF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yx_y0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzlF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a DELETE request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>
and a handler which responds with nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an optional <code>User</code>, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="n">session</span><span class="o">.</span><span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span>
                          <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">ResultClosure</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware and returns a RequestError or nil on success.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yx_q_y0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzAF10IdentifierR_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yx_q_y0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzAF10IdentifierR_r0_lF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a DELETE request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, an <code>Identifier</code>
and a handler which responds with nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
    <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">id</span><span class="p">]</span> <span class="o">=</span> <span class="kc">nil</span>
    <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span>
                          <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Id</span><span class="p">:</span> <span class="kt">Identifier</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">ResultClosure</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware and Identifier, and returns nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yx_q_y0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzAF11QueryParamsR_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yx_q_y0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzAF11QueryParamsR_r0_lF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a DELETE request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, the parsed query parameters,
and a handler which responds with nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">Query</span><span class="p">:</span> <span class="kt">QueryParams</span> <span class="p">{</span>
   <span class="k">let</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">query</span><span class="o">.</span><span class="n">id</span><span class="p">]</span> <span class="o">=</span> <span class="kc">nil</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">,</span>
                          <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Q</span><span class="p">:</span> <span class="kt">QueryParams</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Q</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">ResultClosure</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware and Identifier, and returns nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yx_q_Sgy0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzAG11QueryParamsR_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yx_q_Sgy0A9Contracts12RequestErrorVSgctctAA18TypeSafeMiddlewareRzAG11QueryParamsR_r0_lF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a DELETE request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, the parsed query parameters,
and a handler which responds with nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MyHTTPAuth</code> is a struct that conforms to the <code>TypeSafeHTTPBasic</code> protocol from <code>Kitura-CredentialsHTTP</code> to provide basic HTTP authentication.</p>
<pre class="highlight swift"><code><span class="kd">struct</span> <span class="kt">Query</span><span class="p">:</span> <span class="kt">QueryParams</span> <span class="p">{</span>
    <span class="k">let</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span>
<span class="p">}</span>
<span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">auth</span><span class="p">:</span> <span class="kt">MyHTTPAuth</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">?,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
    <span class="k">if</span> <span class="k">let</span> <span class="nv">query</span> <span class="o">=</span> <span class="n">query</span> <span class="p">{</span>
        <span class="n">userArray</span> <span class="o">=</span> <span class="n">userArray</span><span class="o">.</span><span class="n">filter</span> <span class="p">{</span> <span class="nv">$0</span><span class="o">.</span><span class="n">id</span> <span class="o">!=</span> <span class="n">query</span><span class="o">.</span><span class="n">id</span> <span class="p">}</span>
        <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
    <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
        <span class="n">userArray</span> <span class="o">=</span> <span class="p">[]</span>
        <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
    <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">query</span><span class="p">:</span> <span class="kt">Query</span><span class="p">?,</span>
<span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Q</span><span class="p">:</span> <span class="kt">QueryParams</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Q</span><span class="p">?,</span> <span class="kd">@escaping</span> <span class="kt">ResultClosure</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
    <span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware and Identifier, and returns nil on success, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/post(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_SeR0_SER0_r1_lF">post(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a POST request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, a Codable object
and a handler which responds with a single Codable object or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an optional <code>User</code>, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">if</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span> <span class="o">==</span> <span class="kc">nil</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">badRequest</span><span class="p">)</span>
   <span class="p">}</span> <span class="k">else</span> <span class="p">{</span>
       <span class="n">session</span><span class="o">.</span><span class="n">user</span> <span class="o">=</span> <span class="n">user</span>
       <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
   <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span>
                        <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">post</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">I</span><span class="p">:</span> <span class="kt">Codable</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and a Codable object, and returns a Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_7handlerySS_yx_q_yq0_Sg_q1_Sg0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_AH10IdentifierR0_SeR1_SER1_r2_lF"></a>
                    <a name="//apple_ref/swift/Method/post(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_7handlerySS_yx_q_yq0_Sg_q1_Sg0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzSeR_SER_AH10IdentifierR0_SeR1_SER1_r2_lF">post(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a POST request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, a Codable object
and a handler which responds with an <code>Identifier</code> and a Codable object, or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">Int</span><span class="p">?,</span> <span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
   <span class="k">let</span> <span class="nv">newId</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">users</span><span class="o">.</span><span class="n">count</span> <span class="o">+</span> <span class="mi">1</span>
   <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">newId</span><span class="p">]</span> <span class="o">=</span> <span class="n">user</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="n">newId</span><span class="p">,</span> <span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
   <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">Int</span><span class="p">?,</span> <span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">post</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">I</span><span class="p">:</span> <span class="kt">Codable</span><span class="p">,</span> <span class="kt">Id</span><span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">IdentifierCodableResultClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance and a Codable object, and returns an Identifier and a Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3put_7handlerySS_yx_q_q0_yq1_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG10IdentifierR_SeR0_SER0_SeR1_SER1_r2_lF"></a>
                    <a name="//apple_ref/swift/Method/put(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3put_7handlerySS_yx_q_q0_yq1_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG10IdentifierR_SeR0_SER0_SeR1_SER1_r2_lF">put(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a PUT request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, an <code>Identifier</code>, a Codable object
and a handler which responds with a single Codable object or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span>  <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
    <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">id</span><span class="p">]</span> <span class="o">=</span> <span class="n">user</span>
    <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">put</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span>
<span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">put</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Id</span><span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">I</span><span class="p">:</span> <span class="kt">Codable</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance, an Identifier and a Codable object, and returns a Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5patch_7handlerySS_yx_q_q0_yq1_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG10IdentifierR_SeR0_SER0_SeR1_SER1_r2_lF"></a>
                    <a name="//apple_ref/swift/Method/patch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5patch_7handlerySS_yx_q_q0_yq1_Sg_0A9Contracts12RequestErrorVSgtctctAA18TypeSafeMiddlewareRzAG10IdentifierR_SeR0_SER0_SeR1_SER1_r2_lF">patch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Sets up a closure that will be invoked when a PATCH request to the provided route is received by the server.
The closure accepts a successfully executed instance of <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code>, an <code>Identifier</code>, a Codable object
and a handler which responds with a single Codable object or a <code><a href="../Typealiases.html#/s:6Kitura12RequestErrora">RequestError</a></code>.
The handler contains the developer&rsquo;s logic, which determines the server&rsquo;s response.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>

<p>In this example, <code>MySession</code> is a struct that conforms to the <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> protocol and specifies an [Int: User] dictionary, where <code>User</code> conforms to Codable.</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">patch</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">session</span><span class="p">:</span> <span class="kt">MySession</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">inputUser</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
<span class="k">guard</span> <span class="k">let</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span> <span class="o">=</span> <span class="n">session</span><span class="o">.</span><span class="n">user</span><span class="p">[</span><span class="n">id</span><span class="p">]</span> <span class="k">else</span> <span class="p">{</span>
       <span class="k">return</span> <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">,</span> <span class="o">.</span><span class="n">notFound</span><span class="p">)</span>
   <span class="p">}</span>
   <span class="n">user</span><span class="o">.</span><span class="n">id</span> <span class="o">=</span> <span class="n">inputUser</span><span class="o">.</span><span class="n">id</span> <span class="p">??</span> <span class="n">user</span><span class="o">.</span><span class="n">id</span>
   <span class="n">user</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">inputUser</span><span class="o">.</span><span class="n">name</span> <span class="p">??</span> <span class="n">user</span><span class="o">.</span><span class="n">name</span>
   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
   <span class="p">}</span>
<span class="p">}</span>
</code></pre>
<h4 id='multiple-middleware' class='heading'>Multiple Middleware:</h4>

<p>The closure can process up to three <code><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></code> objects by defining them in the handler:</p>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">patch</span><span class="p">(</span><span class="s">"/user"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">middle1</span><span class="p">:</span> <span class="kt">Middle1</span><span class="p">,</span> <span class="nv">middle2</span><span class="p">:</span> <span class="kt">Middle2</span><span class="p">,</span> <span class="nv">middle3</span><span class="p">:</span> <span class="kt">Middle3</span><span class="p">,</span>
<span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">patch</span><span class="o">&lt;</span><span class="kt">T</span><span class="p">:</span> <span class="kt"><a href="../Protocols/TypeSafeMiddleware.html">TypeSafeMiddleware</a></span><span class="p">,</span> <span class="kt">Id</span><span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">I</span><span class="p">:</span> <span class="kt">Codable</span><span class="p">,</span> <span class="kt">O</span><span class="p">:</span> <span class="kt">Codable</span><span class="o">&gt;</span><span class="p">(</span>
    <span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span>
    <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">T</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span>
<span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the URL path that will invoke the handler.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A closure that receives a TypeSafeMiddleware instance, an Identifier and a Codable object, and returns a Codable object or a RequestError.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Codable%20Routing"></a>
                <a name="//apple_ref/swift/Section/Codable Routing" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Codable%20Routing"></a>
                  <h3 class="section-name"><p>Codable Routing</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yySayxGSg_0A9Contracts12RequestErrorVSgtcctSeRzSERzlF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yySayxGSg_0A9Contracts12RequestErrorVSgtcctSeRzSERzlF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a CodableArrayClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">users</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">CodableArrayClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A CodableArrayClosure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yyxSg_0A9Contracts12RequestErrorVSgtcctSeRzSERzlF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yyxSg_0A9Contracts12RequestErrorVSgtcctSeRzSERzlF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a SimpleCodableClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//Status is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/status"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">Status</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">status</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">SimpleCodableClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A SimpleCodableClosure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctAG10IdentifierRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctAG10IdentifierRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a IdentifierSimpleCodableClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">IdentifierSimpleCodableClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An IdentifierSimpleCodableClosure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yySayx_q_tGSg_0A9Contracts12RequestErrorVSgtcctAH10IdentifierRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yySayx_q_tGSg_0A9Contracts12RequestErrorVSgtcctAH10IdentifierRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a IdentifierCodableArrayClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">respondWith</span><span class="p">:</span> <span class="p">([(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">User</span><span class="p">)]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">([(</span><span class="kt">Int</span><span class="p">,</span> <span class="kt">User</span><span class="p">)],</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">IdentifierCodableArrayClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A IdentifierCodableArrayClosure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_ySayq_GSg_0A9Contracts12RequestErrorVSgtctctAH11QueryParamsRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_ySayq_GSg_0A9Contracts12RequestErrorVSgtctctAH11QueryParamsRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a (QueryParams, CodableArrayResultClosure) -&gt; Void on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">// MyQuery is a codable struct defining the supported query parameters</span>
<span class="c1">// User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/query"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt">MyQuery</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">users</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">Q</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Q</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableArrayResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A (QueryParams, CodableArrayResultClosure) -&gt; Void that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctAG11QueryParamsRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctAG11QueryParamsRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a (QueryParams, CodableResultClosure) -&gt; Void on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">// MyQuery is a codable struct defining the supported query parameters</span>
<span class="c1">// User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/query"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt">MyQuery</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

<span class="o">...</span>

<span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">Q</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Q</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A (QueryParams, CodableResultClosure) -&gt; Void that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yxSg_ySayq_GSg_0A9Contracts12RequestErrorVSgtctctAI11QueryParamsRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yxSg_ySayq_GSg_0A9Contracts12RequestErrorVSgtctctAI11QueryParamsRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a (QueryParams?, CodableArrayResultClosure) -&gt; Void on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">// MyQuery is a codable struct defining the supported query parameters</span>
<span class="c1">// User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/query"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt">MyQuery</span><span class="p">?,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">([</span><span class="kt">User</span><span class="p">]?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">users</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">Q</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Q</span><span class="p">?,</span> <span class="kd">@escaping</span> <span class="kt">CodableArrayResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A (QueryParams?, CodableArrayResultClosure) -&gt; Void that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerySS_yxSg_yq_Sg_0A9Contracts12RequestErrorVSgtctctAH11QueryParamsRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerySS_yxSg_yq_Sg_0A9Contracts12RequestErrorVSgtctctAH11QueryParamsRzSeR_SER_r0_lF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a (QueryParams?, CodableResultClosure) -&gt; Void on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">// MyQuery is a codable struct defining the supported query parameters</span>
<span class="c1">// User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">get</span><span class="p">(</span><span class="s">"/query"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt">MyQuery</span><span class="p">?,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

<span class="o">...</span>

<span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="k">get</span><span class="o">&lt;</span><span class="kt">Q</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Q</span><span class="p">?,</span> <span class="kd">@escaping</span> <span class="kt">CodableResultClosure</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A (QueryParams?, CodableResultClosure) -&gt; Void that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yy0A9Contracts12RequestErrorVSgcctF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yy0A9Contracts12RequestErrorVSgcctF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a NonCodableClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">delete</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">NonCodableClosure</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An NonCodableClosure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yx_y0A9Contracts12RequestErrorVSgctctAF10IdentifierRzlF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yx_y0A9Contracts12RequestErrorVSgctctAF10IdentifierRzlF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a IdentifierNonCodableClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">Id</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">IdentifierNonCodableClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An IdentifierNonCodableClosure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yx_y0A9Contracts12RequestErrorVSgctctAF11QueryParamsRzlF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yx_y0A9Contracts12RequestErrorVSgctctAF11QueryParamsRzlF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a (QueryParams, ResultClosure) -&gt; Void on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">// MyQuery is a codable struct defining the supported query parameters</span>
<span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/query"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt">MyQuery</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

<span class="o">...</span>

<span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">Q</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Q</span><span class="p">,</span> <span class="kd">@escaping</span> <span class="kt">ResultClosure</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A (QueryParams, ResultClosure) -&gt; Void that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerySS_yxSg_y0A9Contracts12RequestErrorVSgctctAG11QueryParamsRzlF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerySS_yxSg_y0A9Contracts12RequestErrorVSgctctAG11QueryParamsRzlF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a (QueryParams?, ResultClosure) -&gt; Void on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">// MyQuery is a codable struct defining the supported query parameters</span>
<span class="n">router</span><span class="o">.</span><span class="nf">delete</span><span class="p">(</span><span class="s">"/query"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">query</span><span class="p">:</span> <span class="kt">MyQuery</span><span class="p">?,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

<span class="o">...</span>

<span class="nf">respondWith</span><span class="p">(</span><span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">delete</span><span class="o">&lt;</span><span class="kt">Q</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">(</span><span class="kt">Q</span><span class="p">?,</span> <span class="kd">@escaping</span> <span class="kt">ResultClosure</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A (QueryParams?, ResultClosure) -&gt; Void that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctSeRzSERzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/post(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_7handlerySS_yx_yq_Sg_0A9Contracts12RequestErrorVSgtctctSeRzSERzSeR_SER_r0_lF">post(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a CodableClosure on the provided route which will be invoked when a POST request comes to the server.
In this scenario, the ID (i.e. unique identifier) is a field in the Codable instance.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">post</span><span class="o">&lt;</span><span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">CodableClosure</span><span class="o">&lt;</span><span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Codable closure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_7handlerySS_yx_yq_Sg_q0_Sg0A9Contracts12RequestErrorVSgtctctSeRzSERzAH10IdentifierR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/post(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_7handlerySS_yx_yq_Sg_q0_Sg0A9Contracts12RequestErrorVSgtctctSeRzSERzAH10IdentifierR_SeR0_SER0_r1_lF">post(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a CodableIdentifierClosure on the provided route which will be invoked when a POST request comes to the server.
In this scenario, the ID (i.e. unique identifier) for the Codable instance is a separate field (which is sent back to the client
in the location HTTP header).</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">post</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">Int</span><span class="p">?,</span> <span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">id</span><span class="p">,</span> <span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">post</span><span class="o">&lt;</span><span class="kt">I</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">CodableIdentifierClosure</span><span class="o">&lt;</span><span class="kt">I</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Codable closure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3put_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAG10IdentifierRzSeR_SER_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/put(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3put_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAG10IdentifierRzSeR_SER_SeR0_SER0_r1_lF">put(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a IdentifierCodableClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="n">router</span><span class="o">.</span><span class="nf">put</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">user</span><span class="p">:</span> <span class="kt">User</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">put</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">IdentifierCodableClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An Identifier Codable closure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5patch_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAG10IdentifierRzSeR_SER_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/patch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5patch_7handlerySS_yx_q_yq0_Sg_0A9Contracts12RequestErrorVSgtctctAG10IdentifierRzSeR_SER_SeR0_SER0_r1_lF">patch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a IdentifierCodableClosure on the provided route which will be invoked when a request comes to the server.</p>
<h3 id='usage-example' class='heading'>Usage Example:</h3>
<pre class="highlight swift"><code><span class="c1">//User is a struct object that conforms to Codable</span>
<span class="c1">//OptionalUser is a struct object that conforms to Codable where all properties are optional</span>
<span class="n">router</span><span class="o">.</span><span class="nf">patch</span><span class="p">(</span><span class="s">"/users"</span><span class="p">)</span> <span class="p">{</span> <span class="p">(</span><span class="nv">id</span><span class="p">:</span> <span class="kt">Int</span><span class="p">,</span> <span class="nv">patchUser</span><span class="p">:</span> <span class="kt">OptionalUser</span><span class="p">,</span> <span class="nv">respondWith</span><span class="p">:</span> <span class="p">(</span><span class="kt">User</span><span class="p">?,</span> <span class="kt">RequestError</span><span class="p">?)</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Void</span> <span class="k">in</span>

   <span class="o">...</span>

   <span class="nf">respondWith</span><span class="p">(</span><span class="n">user</span><span class="p">,</span> <span class="kc">nil</span><span class="p">)</span>
<span class="p">}</span>
</code></pre>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">patch</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="n">_</span> <span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="kt">IdentifierCodableClosure</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A String specifying the pattern that needs to be matched, in order for the handler to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An Identifier Codable closure that gets invoked when a request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/RouterMiddleware%20extensions"></a>
                <a name="//apple_ref/swift/Section/RouterMiddleware extensions" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/RouterMiddleware%20extensions"></a>
                  <h3 class="section-name"><p>RouterMiddleware extensions</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6handle7request8response4nextyAA0B7RequestC_AA0B8ResponseCyyctKF"></a>
                    <a name="//apple_ref/swift/Method/handle(request:response:next:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6handle7request8response4nextyAA0B7RequestC_AA0B8ResponseCyyctKF">handle(request:<wbr>response:<wbr>next:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Handle an HTTP request as a middleware. Used internally in <code>Router</code> to allow for sub routing.</p>
<div class="aside aside-throws">
    <p class="aside-title">Throws</p>
    Any <code>ErrorType</code>. If an error is thrown, processing of the request
     is stopped, the error handlers, if any are defined, will be invoked,
     and the user will get a response with a status code of 500.

</div>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">handle</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="kt"><a href="../Classes/RouterRequest.html">RouterRequest</a></span><span class="p">,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt"><a href="../Classes/RouterResponse.html">RouterResponse</a></span><span class="p">,</span> <span class="nv">next</span><span class="p">:</span> <span class="kd">@escaping</span> <span class="p">()</span> <span class="o">-&gt;</span> <span class="kt">Void</span><span class="p">)</span> <span class="k">throws</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>request</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code><a href="../Classes/RouterRequest.html">RouterRequest</a></code> object used to work with the incoming
                HTTP request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>response</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code><a href="../Classes/RouterResponse.html">RouterResponse</a></code> object used to respond to the
                HTTP request.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>next</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The closure called to invoke the next handler or middleware
                associated with the request.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/HTTPServerDelegate%20extensions"></a>
                <a name="//apple_ref/swift/Section/HTTPServerDelegate extensions" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/HTTPServerDelegate%20extensions"></a>
                  <h3 class="section-name"><p>HTTPServerDelegate extensions</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6handle7request8responsey0A3Net13ServerRequest_p_AG0G8Response_ptF"></a>
                    <a name="//apple_ref/swift/Method/handle(request:response:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6handle7request8responsey0A3Net13ServerRequest_p_AG0G8Response_ptF">handle(request:<wbr>response:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Handle new incoming requests to the server.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">handle</span><span class="p">(</span><span class="nv">request</span><span class="p">:</span> <span class="kt">ServerRequest</span><span class="p">,</span> <span class="nv">response</span><span class="p">:</span> <span class="kt">ServerResponse</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>request</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code>ServerRequest</code> object used to work with the incoming
                HTTP request at the <a href="http://ibm-swift.github.io/Kitura-net/">Kitura-net</a> API level.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>response</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The <code>ServerResponse</code> object used to send responses to the
                 HTTP request at the <a href="http://ibm-swift.github.io/Kitura-net/">Kitura-net</a> API level.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Error"></a>
                <a name="//apple_ref/swift/Section/Error" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Error"></a>
                  <h3 class="section-name"><p>Error</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5erroryACyAA0B7RequestC_AA0B8ResponseCyyctKcd_tF"></a>
                    <a name="//apple_ref/swift/Method/error(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5erroryACyAA0B7RequestC_AA0B8ResponseCyyctKcd_tF">error(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup error handling that will cause a set of one or more closures
of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> to be invoked when an error occurs.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">error</span><span class="p">(</span><span class="n">_</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
                invoked if an error ocurrs.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5erroryACSayyAA0B7RequestC_AA0B8ResponseCyyctKcGF"></a>
                    <a name="//apple_ref/swift/Method/error(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5erroryACSayyAA0B7RequestC_AA0B8ResponseCyyctKcGF">error(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup error handling that will cause an array of one or more closures
of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> to be invoked when an error occurs.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">error</span><span class="p">(</span><span class="n">_</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
                invoked if an error ocurrs.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5erroryAcA0B10Middleware_pd_tF"></a>
                    <a name="//apple_ref/swift/Method/error(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5erroryAcA0B10Middleware_pd_tF">error(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup error handling that will cause a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code>
to be invoked when an error occurs.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">error</span><span class="p">(</span><span class="n">_</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>middleware</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                   invoked if an error ocurrs.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5erroryACSayAA0B10Middleware_pGF"></a>
                    <a name="//apple_ref/swift/Method/error(_:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5erroryACSayAA0B10Middleware_pGF">error(_:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup error handling that will cause an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code>
to be invoked when an error occurs.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">error</span><span class="p">(</span><span class="n">_</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>middleware</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                   invoked if an error ocurrs.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/All"></a>
                <a name="//apple_ref/swift/Section/All" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/All"></a>
                  <h3 class="section-name"><p>All</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3all_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/all(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3all_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">all(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when any request comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">all</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when any request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3all_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/all(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3all_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">all(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when any request comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">all</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when any request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3all_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/all(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3all_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">all(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when any request comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">all</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when any request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3all_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/all(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3all_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">all(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when any request comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">all</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when any request comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Get"></a>
                <a name="//apple_ref/swift/Section/Get" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Get"></a>
                  <h3 class="section-name"><p>Get</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP GET requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">get</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP GET requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/get(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">get(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP GET requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">get</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP GET requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/get(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">get(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP GET requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">get</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP GET requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3get_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/get(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3get_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">get(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP GET requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">get</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP GET requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Head"></a>
                <a name="//apple_ref/swift/Section/Head" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Head"></a>
                  <h3 class="section-name"><p>Head</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4head_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/head(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4head_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">head(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP HEAD requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">head</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP HEAD requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4head_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/head(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4head_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">head(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP HEAD requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">head</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP HEAD requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4head_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/head(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4head_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">head(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP HEAD requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">head</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP HEAD requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4head_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/head(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4head_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">head(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP HEAD requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">head</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP HEAD requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Post"></a>
                <a name="//apple_ref/swift/Section/Post" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Post"></a>
                  <h3 class="section-name"><p>Post</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/post(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">post(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP POST requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">post</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP POST requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/post(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">post(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP POST requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">post</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP POST requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/post(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">post(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP POST requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">post</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP POST requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4post_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/post(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4post_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">post(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP POST requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">post</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP POST requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Put"></a>
                <a name="//apple_ref/swift/Section/Put" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Put"></a>
                  <h3 class="section-name"><p>Put</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3put_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/put(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3put_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">put(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PUT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">put</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3put_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/put(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3put_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">put(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PUT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">put</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3put_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/put(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3put_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">put(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PUT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">put</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC3put_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/put(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC3put_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">put(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PUT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">put</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Delete"></a>
                <a name="//apple_ref/swift/Section/Delete" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Delete"></a>
                  <h3 class="section-name"><p>Delete</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP DELETE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">delete</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP DELETE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">delete(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP DELETE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">delete</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP DELETE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">delete(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP DELETE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">delete</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP DELETE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6delete_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/delete(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6delete_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">delete(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP DELETE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">delete</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP DELETE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Options"></a>
                <a name="//apple_ref/swift/Section/Options" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Options"></a>
                  <h3 class="section-name"><p>Options</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7options_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/options(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7options_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">options(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP OPTIONS requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">options</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP OPTIONS requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7options_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/options(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7options_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">options(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP OPTIONS requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">options</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP OPTIONS requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7options_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/options(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7options_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">options(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP OPTIONS requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">options</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP OPTIONS requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7options_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/options(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7options_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">options(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP OPTIONS requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">options</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP OPTIONS requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Trace"></a>
                <a name="//apple_ref/swift/Section/Trace" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Trace"></a>
                  <h3 class="section-name"><p>Trace</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5trace_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/trace(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5trace_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">trace(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP TRACE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">trace</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP TRACE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5trace_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/trace(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5trace_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">trace(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP TRACE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">trace</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP TRACE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5trace_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/trace(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5trace_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">trace(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP TRACE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">trace</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP TRACE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5trace_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/trace(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5trace_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">trace(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP TRACE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">trace</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP TRACE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Copy"></a>
                <a name="//apple_ref/swift/Section/Copy" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Copy"></a>
                  <h3 class="section-name"><p>Copy</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4copy_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/copy(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4copy_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">copy(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP COPY requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">copy</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP COPY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4copy_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/copy(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4copy_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">copy(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP COPY requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">copy</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP COPY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4copy_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/copy(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4copy_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">copy(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP COPY requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">copy</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP COPY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4copy_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/copy(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4copy_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">copy(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP COPY requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">copy</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP COPY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Lock"></a>
                <a name="//apple_ref/swift/Section/Lock" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Lock"></a>
                  <h3 class="section-name"><p>Lock</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4lock_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/lock(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4lock_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">lock(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP LOCK requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">lock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP LOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4lock_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/lock(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4lock_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">lock(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP LOCK requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">lock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP LOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4lock_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/lock(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4lock_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">lock(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP LOCK requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">lock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP LOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4lock_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/lock(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4lock_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">lock(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP LOCK requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">lock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP LOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/MkCol"></a>
                <a name="//apple_ref/swift/Section/MkCol" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/MkCol"></a>
                  <h3 class="section-name"><p>MkCol</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5mkCol_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/mkCol(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5mkCol_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">mkCol(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MKCOL requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkCol</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MKCOL requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5mkCol_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/mkCol(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5mkCol_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">mkCol(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MKCOL requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkCol</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MKCOL requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5mkCol_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/mkCol(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5mkCol_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">mkCol(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MKCOL requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkCol</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MKCOL requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5mkCol_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/mkCol(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5mkCol_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">mkCol(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MKCOL requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkCol</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MKCOL requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Move"></a>
                <a name="//apple_ref/swift/Section/Move" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Move"></a>
                  <h3 class="section-name"><p>Move</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4move_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/move(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4move_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">move(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MOVE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">move</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MOVE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4move_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/move(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4move_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">move(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MOVE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">move</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MOVE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4move_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/move(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4move_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">move(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MOVE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">move</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MOVE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC4move_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/move(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC4move_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">move(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MOVE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">move</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MOVE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Purge"></a>
                <a name="//apple_ref/swift/Section/Purge" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Purge"></a>
                  <h3 class="section-name"><p>Purge</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5purge_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/purge(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5purge_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">purge(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PURGE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">purge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PURGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5purge_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/purge(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5purge_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">purge(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PURGE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">purge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PURGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5purge_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/purge(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5purge_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">purge(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PURGE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">purge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PURGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5purge_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/purge(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5purge_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">purge(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PURGE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">purge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PURGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/PropFind"></a>
                <a name="//apple_ref/swift/Section/PropFind" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/PropFind"></a>
                  <h3 class="section-name"><p>PropFind</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8propFind_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/propFind(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8propFind_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">propFind(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PROPFIND requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propFind</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PROPFIND requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8propFind_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/propFind(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8propFind_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">propFind(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PROPFIND requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propFind</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PROPFIND requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8propFind_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/propFind(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8propFind_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">propFind(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PROPFIND requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propFind</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PROPFIND requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8propFind_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/propFind(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8propFind_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">propFind(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PROPFIND requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propFind</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PROPFIND requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/PropPatch"></a>
                <a name="//apple_ref/swift/Section/PropPatch" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/PropPatch"></a>
                  <h3 class="section-name"><p>PropPatch</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9propPatch_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/propPatch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9propPatch_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">propPatch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PROPPATCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propPatch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PROPPATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9propPatch_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/propPatch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9propPatch_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">propPatch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PROPPATCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propPatch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PROPPATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9propPatch_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/propPatch(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9propPatch_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">propPatch(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PROPPATCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propPatch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PROPPATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9propPatch_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/propPatch(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9propPatch_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">propPatch(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PROPPATCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">propPatch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PROPPATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Unlock"></a>
                <a name="//apple_ref/swift/Section/Unlock" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Unlock"></a>
                  <h3 class="section-name"><p>Unlock</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6unlock_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/unlock(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6unlock_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">unlock(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP UNLOCK requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unlock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP UNLOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6unlock_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/unlock(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6unlock_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">unlock(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP UNLOCK requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unlock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP UNLOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6unlock_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/unlock(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6unlock_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">unlock(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP UNLOCK requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unlock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP UNLOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6unlock_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/unlock(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6unlock_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">unlock(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP UNLOCK requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unlock</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP UNLOCK requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Report"></a>
                <a name="//apple_ref/swift/Section/Report" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Report"></a>
                  <h3 class="section-name"><p>Report</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6report_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/report(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6report_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">report(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP REPORT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">report</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP REPORT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6report_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/report(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6report_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">report(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP REPORT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">report</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP REPORT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6report_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/report(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6report_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">report(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP REPORT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">report</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP REPORT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6report_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/report(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6report_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">report(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP REPORT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">report</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP REPORT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/MkActivity"></a>
                <a name="//apple_ref/swift/Section/MkActivity" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/MkActivity"></a>
                  <h3 class="section-name"><p>MkActivity</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC10mkActivity_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/mkActivity(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC10mkActivity_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">mkActivity(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MKACTIVITY requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkActivity</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MKACTIVITY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC10mkActivity_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/mkActivity(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC10mkActivity_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">mkActivity(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MKACTIVITY requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkActivity</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MKACTIVITY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC10mkActivity_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/mkActivity(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC10mkActivity_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">mkActivity(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MKACTIVITY requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkActivity</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MKACTIVITY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC10mkActivity_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/mkActivity(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC10mkActivity_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">mkActivity(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MKACTIVITY requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mkActivity</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MKACTIVITY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Checkout"></a>
                <a name="//apple_ref/swift/Section/Checkout" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Checkout"></a>
                  <h3 class="section-name"><p>Checkout</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8checkout_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/checkout(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8checkout_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">checkout(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP CHECKOUT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">checkout</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP CHECKOUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8checkout_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/checkout(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8checkout_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">checkout(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP CHECKOUT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">checkout</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP CHECKOUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8checkout_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/checkout(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8checkout_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">checkout(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP CHECKOUT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">checkout</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP CHECKOUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC8checkout_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/checkout(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC8checkout_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">checkout(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP CHECKOUT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">checkout</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP CHECKOUT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Merge"></a>
                <a name="//apple_ref/swift/Section/Merge" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Merge"></a>
                  <h3 class="section-name"><p>Merge</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5merge_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/merge(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5merge_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">merge(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MERGE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">merge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MERGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5merge_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/merge(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5merge_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">merge(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MERGE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">merge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MERGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5merge_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/merge(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5merge_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">merge(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MERGE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">merge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MERGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5merge_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/merge(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5merge_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">merge(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MERGE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">merge</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MERGE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/MSearch"></a>
                <a name="//apple_ref/swift/Section/MSearch" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/MSearch"></a>
                  <h3 class="section-name"><p>MSearch</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7mSearch_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/mSearch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7mSearch_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">mSearch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MSEARCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mSearch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MSEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7mSearch_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/mSearch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7mSearch_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">mSearch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP MSEARCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mSearch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP MSEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7mSearch_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/mSearch(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7mSearch_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">mSearch(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MSEARCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mSearch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MSEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7mSearch_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/mSearch(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7mSearch_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">mSearch(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP MSEARCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">mSearch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP MSEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Notify"></a>
                <a name="//apple_ref/swift/Section/Notify" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Notify"></a>
                  <h3 class="section-name"><p>Notify</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6notify_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/notify(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6notify_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">notify(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP NOTIFY requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">notify</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP NOTIFY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6notify_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/notify(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6notify_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">notify(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP NOTIFY requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">notify</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP NOTIFY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6notify_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/notify(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6notify_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">notify(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP NOTIFY requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">notify</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP NOTIFY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6notify_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/notify(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6notify_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">notify(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP NOTIFY requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">notify</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP NOTIFY requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Subscribe"></a>
                <a name="//apple_ref/swift/Section/Subscribe" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Subscribe"></a>
                  <h3 class="section-name"><p>Subscribe</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9subscribe_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/subscribe(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9subscribe_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">subscribe(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP SUBSCRIBE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">subscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP SUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9subscribe_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/subscribe(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9subscribe_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">subscribe(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP SUBSCRIBE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">subscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP SUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9subscribe_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/subscribe(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9subscribe_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">subscribe(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP SUBSCRIBE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">subscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP SUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC9subscribe_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/subscribe(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC9subscribe_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">subscribe(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP SUBSCRIBE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">subscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP SUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Unsubscribe"></a>
                <a name="//apple_ref/swift/Section/Unsubscribe" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Unsubscribe"></a>
                  <h3 class="section-name"><p>Unsubscribe</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC11unsubscribe_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/unsubscribe(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC11unsubscribe_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">unsubscribe(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP UNSUBSCRIBE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unsubscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP UNSUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC11unsubscribe_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/unsubscribe(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC11unsubscribe_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">unsubscribe(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP UNSUBSCRIBE requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unsubscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP UNSUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC11unsubscribe_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/unsubscribe(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC11unsubscribe_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">unsubscribe(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP UNSUBSCRIBE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unsubscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP UNSUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC11unsubscribe_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/unsubscribe(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC11unsubscribe_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">unsubscribe(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP UNSUBSCRIBE requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">unsubscribe</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP UNSUBSCRIBE requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Patch"></a>
                <a name="//apple_ref/swift/Section/Patch" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Patch"></a>
                  <h3 class="section-name"><p>Patch</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5patch_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/patch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5patch_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">patch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PATCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">patch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5patch_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/patch(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5patch_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">patch(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP PATCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">patch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP PATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5patch_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/patch(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5patch_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">patch(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PATCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">patch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC5patch_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/patch(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC5patch_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">patch(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP PATCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">patch</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP PATCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Search"></a>
                <a name="//apple_ref/swift/Section/Search" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Search"></a>
                  <h3 class="section-name"><p>Search</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6search_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/search(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6search_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">search(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP SEARCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">search</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP SEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6search_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/search(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6search_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">search(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP SEARCH requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">search</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP SEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6search_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/search(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6search_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">search(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP SEARCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">search</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP SEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC6search_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/search(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC6search_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">search(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP SEARCH requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">search</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP SEARCH requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
            <div class="task-group">
              <div class="task-name-container">
                <a name="/Connect"></a>
                <a name="//apple_ref/swift/Section/Connect" class="dashAnchor"></a>
                <div class="section-name-container">
                  <a class="section-name-link" href="#/Connect"></a>
                  <h3 class="section-name"><p>Connect</p>
</h3>
                </div>
              </div>
              <ul class="item-container">
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7connect_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF"></a>
                    <a name="//apple_ref/swift/Method/connect(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7connect_7handlerACSSSg_yAA0B7RequestC_AA0B8ResponseCyyctKcdtF">connect(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP CONNECT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">connect</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP CONNECT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7connect_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF"></a>
                    <a name="//apple_ref/swift/Method/connect(_:handler:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7connect_7handlerACSSSg_SayyAA0B7RequestC_AA0B8ResponseCyyctKcGtF">connect(_:<wbr>handler:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more closures of the type <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code> that will be
invoked when HTTP CONNECT requests comes to the server. If a path pattern is
specified, the handlers will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">connect</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">handler</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the handlers to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Typealiases.html#/s:6Kitura13RouterHandlera">RouterHandler</a></code>s that will be
                invoked when HTTP CONNECT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7connect_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF"></a>
                    <a name="//apple_ref/swift/Method/connect(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7connect_17allowPartialMatch10middlewareACSSSg_SbAA0B10Middleware_pdtF">connect(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup a set of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP CONNECT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">connect</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="o">...</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A comma delimited set of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP CONNECT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC7connect_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF"></a>
                    <a name="//apple_ref/swift/Method/connect(_:allowPartialMatch:middleware:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC7connect_17allowPartialMatch10middlewareACSSSg_SbSayAA0B10Middleware_pGtF">connect(_:<wbr>allowPartialMatch:<wbr>middleware:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Setup an array of one or more <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
invoked when HTTP CONNECT requests comes to the server. If a path pattern is
specified, the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> will only be invoked if the pattern is matched.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">@discardableResult</span>
<span class="kd">public</span> <span class="kd">func</span> <span class="nf">connect</span><span class="p">(</span><span class="n">_</span> <span class="nv">path</span><span class="p">:</span> <span class="kt">String</span><span class="p">?</span> <span class="o">=</span> <span class="kc">nil</span><span class="p">,</span> <span class="nv">allowPartialMatch</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">true</span><span class="p">,</span> <span class="nv">middleware</span><span class="p">:</span> <span class="p">[</span><span class="kt"><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kt">Router</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>path</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>An optional String specifying the pattern that needs to be
             matched, in order for the <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> to be invoked.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>allowPartialMatch</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>A Bool that indicates whether or not a partial match of
                          the path by the pattern is sufficient.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>handler</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The array of <code><a href="../Protocols/RouterMiddleware.html">RouterMiddleware</a></code> that will be
                invoked when HTTP CONNECT requests comes to the server.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC16registerGetRoute5route10outputType0G7IsArrayySS_xmSbtSeRzSERzlF"></a>
                    <a name="//apple_ref/swift/Method/registerGetRoute(route:outputType:outputIsArray:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC16registerGetRoute5route10outputType0G7IsArrayySS_xmSbtSeRzSERzlF">registerGetRoute(route:<wbr>outputType:<wbr>outputIsArray:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register GET route</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerGetRoute</span><span class="o">&lt;</span><span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputIsArray</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">)</span> <span class="k">where</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputtype</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC16registerGetRoute5route2id10outputType0H7IsArrayySS_xmq_mSbt0A9Contracts10IdentifierRzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/registerGetRoute(route:id:outputType:outputIsArray:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC16registerGetRoute5route2id10outputType0H7IsArrayySS_xmq_mSbt0A9Contracts10IdentifierRzSeR_SER_r0_lF">registerGetRoute(route:<wbr>id:<wbr>outputType:<wbr>outputIsArray:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register GET route</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerGetRoute</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Id</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputIsArray</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The id type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputtype</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC16registerGetRoute5route11queryParams14optionalQParam10outputType0K7IsArrayySS_xmSbq_mSbt0A9Contracts05QueryH0RzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/registerGetRoute(route:queryParams:optionalQParam:outputType:outputIsArray:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC16registerGetRoute5route11queryParams14optionalQParam10outputType0K7IsArrayySS_xmSbq_mSbt0A9Contracts05QueryH0RzSeR_SER_r0_lF">registerGetRoute(route:<wbr>queryParams:<wbr>optionalQParam:<wbr>outputType:<wbr>outputIsArray:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register GET route</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerGetRoute</span><span class="o">&lt;</span><span class="kt">Q</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">queryParams</span><span class="p">:</span> <span class="kt">Q</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">optionalQParam</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputIsArray</span><span class="p">:</span> <span class="kt">Bool</span> <span class="o">=</span> <span class="kc">false</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>queryParams</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The query parameters.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>optionalQParam</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Flag to indicate that the query params are all optional.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC19registerDeleteRoute5routeySS_tF"></a>
                    <a name="//apple_ref/swift/Method/registerDeleteRoute(route:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC19registerDeleteRoute5routeySS_tF">registerDeleteRoute(route:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register DELETE route</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="nf">registerDeleteRoute</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">)</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC19registerDeleteRoute5route11queryParams14optionalQParamySS_xmSbt0A9Contracts05QueryH0RzlF"></a>
                    <a name="//apple_ref/swift/Method/registerDeleteRoute(route:queryParams:optionalQParam:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC19registerDeleteRoute5route11queryParams14optionalQParamySS_xmSbt0A9Contracts05QueryH0RzlF">registerDeleteRoute(route:<wbr>queryParams:<wbr>optionalQParam:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register DELETE route</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerDeleteRoute</span><span class="o">&lt;</span><span class="kt">Q</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">queryParams</span><span class="p">:</span> <span class="kt">Q</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">optionalQParam</span><span class="p">:</span> <span class="kt">Bool</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Q</span> <span class="p">:</span> <span class="kt">QueryParams</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>queryParams</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The query parameters.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>optionalQParam</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>Flag to indicate that the query params are all optional.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC19registerDeleteRoute5route2idySS_xmt0A9Contracts10IdentifierRzlF"></a>
                    <a name="//apple_ref/swift/Method/registerDeleteRoute(route:id:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC19registerDeleteRoute5route2idySS_xmt0A9Contracts10IdentifierRzlF">registerDeleteRoute(route:<wbr>id:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register DELETE route</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerDeleteRoute</span><span class="o">&lt;</span><span class="kt">Id</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Id</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The id type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC17registerPostRoute5route9inputType06outputH0ySS_xmq_mtSeRzSERzSeR_SER_r0_lF"></a>
                    <a name="//apple_ref/swift/Method/registerPostRoute(route:inputType:outputType:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC17registerPostRoute5route9inputType06outputH0ySS_xmq_mtSeRzSERzSeR_SER_r0_lF">registerPostRoute(route:<wbr>inputType:<wbr>outputType:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register POST route that is handled by a CodableIdentifierClosure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerPostRoute</span><span class="o">&lt;</span><span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">inputType</span><span class="p">:</span> <span class="kt">I</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="k">where</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>inputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The input object type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC17registerPostRoute5route2id9inputType06outputI0ySS_q_mxmq0_mtSeRzSERz0A9Contracts10IdentifierR_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/registerPostRoute(route:id:inputType:outputType:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC17registerPostRoute5route2id9inputType06outputI0ySS_q_mxmq0_mtSeRzSERz0A9Contracts10IdentifierR_SeR0_SER0_r1_lF">registerPostRoute(route:<wbr>id:<wbr>inputType:<wbr>outputType:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register POST route that is handled by a CodableIdentifierClosure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerPostRoute</span><span class="o">&lt;</span><span class="kt">I</span><span class="p">,</span> <span class="kt">Id</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Id</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">inputType</span><span class="p">:</span> <span class="kt">I</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="k">where</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The id type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>inputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The input object type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC16registerPutRoute5route2id9inputType06outputI0ySS_xmq_mq0_mt0A9Contracts10IdentifierRzSeR_SER_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/registerPutRoute(route:id:inputType:outputType:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC16registerPutRoute5route2id9inputType06outputI0ySS_xmq_mq0_mt0A9Contracts10IdentifierRzSeR_SER_SeR0_SER0_r1_lF">registerPutRoute(route:<wbr>id:<wbr>inputType:<wbr>outputType:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register PUT route that is handled by a IdentifierCodableClosure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerPutRoute</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Id</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">inputType</span><span class="p">:</span> <span class="kt">I</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The id type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>inputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The input object type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
                <li class="item">
                  <div>
                    <code>
                    <a name="/s:6Kitura6RouterC18registerPatchRoute5route2id9inputType06outputI0ySS_xmq_mq0_mt0A9Contracts10IdentifierRzSeR_SER_SeR0_SER0_r1_lF"></a>
                    <a name="//apple_ref/swift/Method/registerPatchRoute(route:id:inputType:outputType:)" class="dashAnchor"></a>
                    <a class="token" href="#/s:6Kitura6RouterC18registerPatchRoute5route2id9inputType06outputI0ySS_xmq_mq0_mt0A9Contracts10IdentifierRzSeR_SER_SeR0_SER0_r1_lF">registerPatchRoute(route:<wbr>id:<wbr>inputType:<wbr>outputType:<wbr>)</a>
                    </code>
                  </div>
                  <div class="height-container">
                    <div class="pointer-container"></div>
                    <section class="section">
                      <div class="pointer"></div>
                      <div class="abstract">
                        <p>Register PATCH route that is handled by an IdentifierCodableClosure.</p>

                      </div>
                      <div class="declaration">
                        <h4>Declaration</h4>
                        <div class="language">
                          <p class="aside-title">Swift</p>
                          <pre class="highlight swift"><code><span class="kd">public</span> <span class="kd">func</span> <span class="n">registerPatchRoute</span><span class="o">&lt;</span><span class="kt">Id</span><span class="p">,</span> <span class="kt">I</span><span class="p">,</span> <span class="kt">O</span><span class="o">&gt;</span><span class="p">(</span><span class="nv">route</span><span class="p">:</span> <span class="kt">String</span><span class="p">,</span> <span class="nv">id</span><span class="p">:</span> <span class="kt">Id</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">inputType</span><span class="p">:</span> <span class="kt">I</span><span class="o">.</span><span class="k">Type</span><span class="p">,</span> <span class="nv">outputType</span><span class="p">:</span> <span class="kt">O</span><span class="o">.</span><span class="k">Type</span><span class="p">)</span> <span class="k">where</span> <span class="kt">Id</span> <span class="p">:</span> <span class="kt">Identifier</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">I</span> <span class="p">:</span> <span class="kt">Encodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Decodable</span><span class="p">,</span> <span class="kt">O</span> <span class="p">:</span> <span class="kt">Encodable</span></code></pre>

                        </div>
                      </div>
                      <div>
                        <h4>Parameters</h4>
                        <table class="graybox">
                          <tbody>
                            <tr>
                              <td>
                                <code>
                                <em>route</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The route to register.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>id</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The id type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>inputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The input object type.</p>
                                </div>
                              </td>
                            </tr>
                            <tr>
                              <td>
                                <code>
                                <em>outputType</em>
                                </code>
                              </td>
                              <td>
                                <div>
                                  <p>The output object type.</p>
                                </div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </section>
                  </div>
                </li>
              </ul>
            </div>
          </div>
        </section>

      </article>
    </div>
    <section class="footer">
      <p>&copy; 2021 <a class="link" href="" target="_blank" rel="external">IBM &amp; Kitura project authors</a>. All rights reserved. (Last updated: 2021-01-25)</p>
      <p>Generated by <a class="link" href="https://github.com/realm/jazzy" target="_blank" rel="external">jazzy ♪♫ v0.13.6</a>, a <a class="link" href="https://realm.io" target="_blank" rel="external">Realm</a> project.</p>
    </section>
  </body>
</div>
</html>
